package dto

type PageReq struct {
	PageNo   int `form:"pageNo" binding:"required"`
	PageSize int `form:"pageSize" binding:"required"`
}

type PageResp[T any] struct {
	Records    []T  `json:"records"`
	TotalCount int  `json:"totalCount"`
	PageCount  int  `json:"pageCount"`
	FirstPage  bool `json:"firstPage"`
	HasPrev    bool `json:"hasPrev"`
	HasNext    bool `json:"hasNext"`
	LastPage   bool `json:"lastPage"`
}
